<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:chiron="http://chironjs.org">
    <head>
        <script src="../modules.js?debug.js&chiron.js"></script>
    </head>
    <body chiron:include="test.js boost.js">
        <div chiron:script="this.innerHTML = getNsAttr(this, chironNs, 'script')"></div>
        <div id="dirElement"></div>
        <script chiron:scope id="b" language="chiron">
            log(dir());
            this.x = 10;
            assertEq(typeof x, 'number');
            assertEq(typeof b.x, 'number');
        </script>
        <script language="chiron">
            assertEq(typeof x, 'undefined');
            assertEq(typeof b.x, 'number');
        </script>
        <script chiron:scope language="chiron">
            assertEq(typeof x, 'undefined');
            assertEq(typeof b.x, 'number');
        </script>
        <ul id="slides" chiron:scope chiron:include="widget/slides.js" chiron:script="Slides(this)">
            <script language="chiron">
                seq(1, 1, add).to(range(10)).forEach(function (n) {
                    slides.appendChild(tag('li', {}, [string(n)]));
                });
            </script>
        </ul>
        <script language="chiron">
            assert(!dir().has('Slides'), 'includes are isolated to their scopes');
        </script>
        <pre chiron:script="this.innerHTML = inoculate(slides.repr())"></pre>
    </body>
</html>
